<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri = "http://java.sun.com/jstl/core_rt"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
  	<base href="<%=basePath%>">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/orionicons.css">
    <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
    <link rel="shortcut icon" href="img/favicon.png?3">
  </head>
  <body>
    
    <div class="d-flex align-items-stretch">
      <div id="sidebar" class="sidebar py-3">
        <div class="text-gray-400 text-uppercase px-3 px-lg-4 py-4 font-weight-bold small headings-font-family">后台管理系统</div>
        <ul class="sidebar-menu list-unstyled">
              <li class="sidebar-list-item"><a href="index.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>管理（管理员）</span></a></li>
              <li class="sidebar-list-item"><a href="add.jsp" class="sidebar-link text-muted active"><i class="o-table-content-1 mr-3 text-gray"></i><span>添加（管理员）</span></a></li>
              <li class="sidebar-list-item"><a href="release.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>发布需求（客户）</span></a></li>
              <li class="sidebar-list-item"><a href="order.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>需求列表（客户）</span></a></li>
              <li class="sidebar-list-item"><a href="submit.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>提交订单（用户）</span></a></li>
              <li class="sidebar-list-item"><a href="orders.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>成交订单（用户）</span></a></li>
              <li class="sidebar-list-item"><a href="announce.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>发布通知（机器人）</span></a></li>
              <li class="sidebar-list-item"><a href="announce1.jsp" class="sidebar-link text-muted"><i class="o-table-content-1 mr-3 text-gray"></i><span>查看通知（机器人）</span></a></li>
        </ul>
      </div>
      <div class="page-holder w-100 d-flex flex-wrap">
        <div class="container-fluid px-xl-5">
          <section class="py-5">
            <div class="row">
              <div class="col-lg-12 mb-4">	
                <div class="card">
                  <div class="card-header">
                    <h6 class="text-uppercase mb-0" align="center">修改用户信息或客户信息</h6>
                   </div>
				     <form action="${pageContext.request.contextPath }/servlet/Controller?op=update&currentPageIndex=${page.currentPageIndex}" method="post">
						<table id="t1" align="center">
						    <tr>
								<td align="left" colspan = "2"><input type="hidden" name="id" value = "${customer.id }">
								</td>
							</tr>
							<tr>
								<td><label class="form-control-label text-uppercase">账号:</label></td>
								<td><input type="text" class="form-control" name="name" value = "${customer.name }">
								</td>
							</tr>
							<tr>
								<td><label class="form-control-label text-uppercase">密码:</label></td>
								<td><input type="password" class="form-control" name="password" value = "${customer.password }">
								</td>
							</tr>
							<tr>
								<td><label class="form-control-label text-uppercase">类型：</label></td>
								<td>
									<input type="radio"  name="type" value="用户"  ${customer.type=="用户"?"checked":"" }>用户
									<input type="radio"  name="type" value="客户"  ${customer.type=="客户"?"checked":"" }>客户
									<input type="radio"  name="type" value="机器人"  ${customer.type=="机器人 "?"checked":"" }>机器人
								</td>
							</tr>
							<tr>
								<td><label class="form-control-label text-uppercase">电话:</label></td>
								<td><input type="text" class="form-control" name="phone" value = "${customer.phone }"> 
								</td>
							</tr>
							<tr>
								<td><label class="form-control-label text-uppercase">邮箱:</label></td>
								<td><input type="text" class="form-control" name="email" value = "${customer.email }">
								</td>
							</tr>
							<tr>
								<td colspan="2"><input type="submit" class="btn btn-primary" value="保存">
								</td>
							</tr>
						</table>
					</form>
                </div>
              </div>
            </div>
          </section>
        </div>
        <footer class="footer bg-white shadow align-self-end py-3 px-xl-5 w-100">
          <div class="container-fluid">
            <div class="row">
              <div class="col-md-6 text-center text-md-left text-primary">
                <p class="mb-2 mb-md-0">one &copy; 2018-2020</p>
              </div>
              <div class="col-md-6 text-center text-md-right text-gray-400">
                <p class="mb-0">Copyright &copy; one <a href="http://www.cssmoban.com/" target="_blank" title="one">one</a>
              </div>
            </div>
          </div>
        </footer>
      </div>
    </div>
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/popper.js/umd/popper.min.js"> </script>
    <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="vendor/jquery.cookie/jquery.cookie.js"> </script>
    <script src="vendor/chart.js/Chart.min.js"></script>
    <script src="js/js.cookie.min.js"></script>
    <script src="js/front.js"></script>
  </body>
</html>